DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomDataSetCollection Class / Read Method / Read(IEnumerable<String>,ReadBehaviours) Method

A set of Filenames to read.

The behaviours to be used when reading this stream


In This Topic
    Read(IEnumerable<String>,ReadBehaviours) Method
    In This Topic
    Creates and adds a collection of DicomDataSet objects from a collection of external DICOM files
    Syntax
    'Declaration
     
    
    Public Overloads Function Read( _
       ByVal FileNames As System.Collections.Generic.IEnumerable(Of String), _
       Optional ByVal ReadBehaviour As ReadBehaviours _
    ) As DicomDataSetCollection
    public DicomDataSetCollection Read( 
       System.Collections.Generic.IEnumerable<string> FileNames,
       ReadBehaviours ReadBehaviour
    )

    Parameters

    FileNames

    A set of Filenames to read.

    ReadBehaviour

    The behaviours to be used when reading this stream

    Return Value

    If successful, a DicomDataSetCollection is returned, and is added to the appropriate collection. If unsuccessful, an appropriate error is thrown.
    Remarks
    Like reading from a single DICOM file, this method loops through the list of files and read them one by one and if successful returns a DicomDataSetCollectionwhich contains all the newly created DicomDataSets.
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also